//
//  HS_detailModle.m
//  悦享
//
//  Created by 韩双 on 16/3/18.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "HS_detailModle.h"

@implementation HS_detailModle

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"user"]) {
        self.user_name = value[@"name"];
        self.avatar_url = value[@"avatar_url"];
    }
    
    if ([key isEqualToString:@"origin_video"]) {
        
        self.video_url = value[@"url_list"][0][@"url"];

    }
    
    if ([key isEqualToString:@"large_image"]) {
        
        self.mp4_url = value[@"url_list"][0][@"url"];
        self.gif_width = value[@"width"];
        self.gif_height = value[@"height"];
    }
    
}


@end
